﻿using System;
using System.Collections.Generic;
using EraNet.Core.Model.SysManage;

namespace EraNet.Services.SysManage
{
    public partial interface IAreaInfoService
    {
        #region
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int InsertAreaInfo(AreaInfo model);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int UpdateAreaInfo(AreaInfo model);
        /// <summary>
        /// 根据行政编号，获取对应信息
        /// </summary>
        /// <param name="areacode"></param>
        /// <returns></returns>
        AreaInfo GetAreaInfoByCode(string areacode);
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        IList<AreaInfo> GetAllAreaInfo();
        #endregion

        #region
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int InsertAreaConfig(AreaInfoConfig model);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int UpdateAreaConfig(AreaInfoConfig model);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="configid"></param>
        /// <returns></returns>
        int DeleteAreaConfig(int configid);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="areacode"></param>
        /// <returns></returns>
        AreaInfoConfig GetAreaConfigByCode(string areacode);

        AreaInfoConfig GetAreaConfigByArea(string province, string city);
        bool VerifyArea();
        #endregion
    }
}
